<?php
/**
 * 入口文件息
 *
 * @copyright  Copyright (c) 2015-2025 NcPHP Inc. (http://www.ncphp.com)
 * @license    http://www.ncphp.com/
 * @link       http://www.ncphp.com/
 * @since      File available since Release v1.1
 */

error_reporting(E_ALL & ~E_NOTICE);
define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));

if($_SERVER['HTTP_HOST'] =='lps.app.todayguizhou.com'){
    define('HOST_URL',"http://".$_SERVER['HTTP_HOST']);
}elseif($_SERVER['HTTP_HOST'] =='lps.coolps.com.cn'){
    define('HOST_URL',"https://".$_SERVER['HTTP_HOST']);
}else{
    define('HOST_URL',"http://".$_SERVER['HTTP_HOST']);
}
//define('HOST_URL',"http://".$_SERVER['HTTP_HOST']);
define('BASE_CORE_PATH',BASE_ROOT_PATH.'/core');
define('BASE_DATA_PATH',BASE_ROOT_PATH.'/data');
define('DS','/');
define('InNcPHP',true);
define('StartTime',microtime(true));
define('TIMESTAMP',time());

define('ATTACH_GOODS','');
define('ATTACH_COMMON','common');
define('URL_DATA',HOST_URL.'/data');
define('DIR_DATA', 'data');
define('DIR_UPLOAD','data/upload');

define('ATTACH_PRODUCT','product');
define('ATTACH_CATEGORY','category');



define('TPL_NAME', 'default');

define('PASSWDKEY','jiweijian');

/**
 * 商品图片
 */
define('PRODUCT_IMAGES_WIDTH', '100,280,600,1200');
define('PRODUCT_IMAGES_HEIGHT', '100,280,600,1200');
define('PRODUCT_IMAGES_EXT', '_100,_280,_600,_1200');

define('GOODS_IMAGES_WIDTH', '240,300,900');
define('GOODS_IMAGES_HEIGHT', '240,300,900');
define('GOODS_IMAGES_EXT', '_240,_300,_900');

define('HOTEL_MARK',1);//酒店标示
define('TICKET_MARK',2);//门票标示
define('FOOD_MARK',3);//美食
define('ITINERARY_MARK',4);//旅行社
//自定义全局变量
define('UPLOAD', URL_DATA . '/upload/');

//支付宝支付回调地址
//define('ALI_NOTIFY_URl','http://lps.app.todayguizhou.com/wxweb/control/alipay_notify.php');
define('ALI_NOTIFY_URl','https://lps.coolps.com.cn/wxweb/control/alipay_notify.php');
//微信支付回调地址
define('WX_NOTIFY_URl','https://lps.coolps.com.cn/wxweb/control/wxapppay_notify.php');

